package com.itheima.goods.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
/**
 * category实体类
 * @author itheima
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("tb_category")
@Accessors(chain = true)
public class Category implements Serializable{

	@ApiModelProperty("分类ID")
	@TableId(type = IdType.AUTO)
	private Integer id;//分类ID
    @ApiModelProperty("分类名称")
	private String name;//分类名称
    @ApiModelProperty("是否显示")
	private String isShow;//是否显示
    @ApiModelProperty("是否导航")
	private String isMenu;//是否导航
    @ApiModelProperty("排序")
	private Integer seq;//排序
    @ApiModelProperty("上级ID")
	private Integer parentId;//上级ID

}
